package com.yyoa.service;

import com.yyoa.entity.User;
import com.yyoa.model.Constraint;
import com.yyoa.model.Page;

public interface UserService {

	void addAdminUser(User user);

	void addCommonUser(User user);

	User getById(Long id);

	User getByUserName(String userName);

	User getByEmail(String email);

	User getByMobilePhone(String mobilePhone);

	User login(String userName, String password);

	boolean verifyUser(String userName, String mobilePhoneOrEmail);

	void resetPassword(String userName, String resetPassword);

	void updateUser(User user);

	Page<User> listUser(Page<User> page, Constraint constraint);

	void deleteUser(String loginUserName, Long id);
}
